#pragma once

#include <QDialog>

class Radar;

class RadarWidgetBase : public QDialog
{
    Q_OBJECT
public:
    RadarWidgetBase(QWidget *parent = nullptr);
    ~RadarWidgetBase();
    static Radar * m_radar;
    void SetRadar(Radar *radar, bool add_cb = true);
    void StatusMsgReceive(const char * data, unsigned int length, unsigned int radar_key = 0);
    static double jiaodu_xiuzheng_;
public slots:
    virtual void AzimuthModifyChanged(double);
    virtual void RangeModifyChanged(double);
    virtual void MsgSlot(const std::string& str, unsigned int radar_key);

Q_SIGNALS:
    void RadarStatusMsg(const std::string& str, unsigned int radar_key);

protected:
    
};